package com.face.server.repository;

import com.face.server.entity.Student;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;

/**
 * Created by ryan on 2018/1/25.
 */
@Deprecated
public interface StudentRepository extends MongoRepository<Student,String>{
    @Query(value = "{$and:[{auth.username:?0}]}")
    Student findByUsername(String username);
}
